package com.xydtech.ecard.config.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xydtech.ecard.config.mapper.EcardGridManageMapper;
import com.xydtech.ecard.config.domain.EcardGridManage;
import com.xydtech.ecard.config.service.IEcardGridManageService;
import com.xydtech.common.core.text.Convert;

/**
 * 网格配置Service业务层处理
 * 
 * @author JHON
 * @date 2022-08-04
 */
@Service
public class EcardGridManageServiceImpl implements IEcardGridManageService 
{
    @Autowired
    private EcardGridManageMapper ecardGridManageMapper;

    /**
     * 查询网格配置
     * 
     * @param id 网格配置主键
     * @return 网格配置
     */
    @Override
    public EcardGridManage selectEcardGridManageById(Long id)
    {
        return ecardGridManageMapper.selectEcardGridManageById(id);
    }

    /**
     * 查询网格配置列表
     * 
     * @param ecardGridManage 网格配置
     * @return 网格配置
     */
    @Override
    public List<EcardGridManage> selectEcardGridManageList(EcardGridManage ecardGridManage)
    {
        return ecardGridManageMapper.selectEcardGridManageList(ecardGridManage);
    }

    /**
     * 新增网格配置
     * 
     * @param ecardGridManage 网格配置
     * @return 结果
     */
    @Override
    public int insertEcardGridManage(EcardGridManage ecardGridManage)
    {
        return ecardGridManageMapper.insertEcardGridManage(ecardGridManage);
    }

    /**
     * 修改网格配置
     * 
     * @param ecardGridManage 网格配置
     * @return 结果
     */
    @Override
    public int updateEcardGridManage(EcardGridManage ecardGridManage)
    {
        return ecardGridManageMapper.updateEcardGridManage(ecardGridManage);
    }

    /**
     * 批量删除网格配置
     * 
     * @param ids 需要删除的网格配置主键
     * @return 结果
     */
    @Override
    public int deleteEcardGridManageByIds(String ids)
    {
        return ecardGridManageMapper.deleteEcardGridManageByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除网格配置信息
     * 
     * @param id 网格配置主键
     * @return 结果
     */
    @Override
    public int deleteEcardGridManageById(Long id)
    {
        return ecardGridManageMapper.deleteEcardGridManageById(id);
    }
}
